PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


GetThemeTrackDragRect

Obtains the area in which the user may drag a track's indicator.

pascal OSStatus GetThemeTrackDragRect (
                     const ThemeTrackDrawInfo *drawInfo,
                     Rect *dragRect);
drawInfo
A pointer to a structure of type ThemeTrackDrawInfo . Before calling GetThemeTrackDragRect , set the structure to contain the current visual characteristics of the track.
dragRect
A pointer to a structure of type Rect . On return, the rectangle contains the actual boundary of the indicator's drag rectangle, in local coordinates.
function result
A result code; see Result Codes .
DISCUSSION

Because of varying indicator geometries and theme designs, the draggable area for an indicator is not typically exactly the same as the track rectangle. Your application should call GetThemeTrackDragRect to obtain the actual area within a track where an indicator can be dragged under the current theme.

VERSION NOTES

Available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)